package cn.huiyunche.base.service.enums;

/**
 * 车辆附件图片类型枚举
 *
 * @author houjianhui
 */
public enum AnnexPicTypeEnum {

    JS("JS", "驾驶证照片"),
    XS("XS", "行驶证照片"),
    //	DL("DL", "道路运输证照片"),
    QY("QY", "牵引车正面照片"),
    GC("GC", "挂车尾照");

    private final String value;
    private final String text;

    AnnexPicTypeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static AnnexPicTypeEnum getByValue(String value) {
        for (AnnexPicTypeEnum temp : AnnexPicTypeEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }
}
